Fix :meth:`Thread.permissions_for` not working in some cases due to an incorrect import.
